import Discover_nav from '@/components/discover/Nav.vue';
import Recommend from '@/components/discover/recommend/Recommend.vue'; //推荐
import ListRanking from '@/components/discover/listRanking/ListRanking.vue'; //排行榜
import songSheet from '@/components/discover/songSheet/SongSheet.vue'; //歌单
import Anchor from '@/components/discover/anchor/Anchor.vue'; // 主播电台
import Singer from '@/components/discover/singer/Singer.vue'; // 歌手
import newDisc from '@/components/discover/newDisc/newDisc.vue'; // 新碟上架
import PlayList from '@/components/discover/playlist/PlayList.vue' // 播放列表
import SingerSong from '@/components/discover/singerSong/SingerSong.vue' //单个歌手所有的歌曲

import Song from '@/components/song/Song.vue';  //歌曲详情
import ListRankingDetail from '@/components/discover/listRanking/Aside.vue'

const discover = [
    {
        path: '/discover',
        component: Discover_nav,
        name: 'discover',
        children: [
            {
                path: '/discover',
                redirect: '/discover/recommend'
            },
            {
                path: 'recommend',
                component: Recommend,
                name: 'recommend',
            },
            {
                path: 'listRanking',
                component: ListRanking,
                name: 'listRanking',
                children: [
                    {
                        path: '/discover/listRanking/',
                        redirect: '/discover/listRanking/detail', 
                    },
                    {
                        path: 'detail',
                        component: ListRankingDetail,
                        name: 'detail',
                    }
                ]
            },
            {
                path: 'songSheet',
                component: songSheet,
                name: 'songSheet',
            },
            {
                path: 'anchor',
                component: Anchor,
                name: 'anchor',
            },
            {
                path: 'singer',
                component: Singer,
                name: 'singer',

            },
            {
                path: 'newDisc',
                component: newDisc,
                name: 'newDisc'
            },
            {
                path: 'playlist',
                component: PlayList,
                name: 'playlist'
            },
            {   //歌曲song
                path: '/song',
                component: Song,
                name: 'song'
            },
            {
                path: '/singersong',
                component: SingerSong,
                name: 'singersong'
            }
        ]
    }
]
export default discover;